/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PanelPaso1.java
 *
 * Created on 11-nov-2009, 12:48:49
 */
package pestañas;

import dialogos.DialogoMetodoMPF;
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JProgressBar;

import javax.swing.JRadioButton;
import utilidades.ValidaBarras;
import vistas.VistaPrincipal;

/**
 *
 * @author Shidobu
 */
public class PanelPaso1 extends javax.swing.JPanel {
	VistaPrincipal vista;
	JProgressBar barraProgreso;
	boolean cambioPeriodoEntrega;
	boolean cambioLugarEvaluacion;
	boolean cambioTamañoSoftware;

	/** Creates new form PanelPaso1 */
	public PanelPaso1 () {
		initComponents ();

	}

	public void setBarraProgreso (JProgressBar barraProgreso) {
		this.barraProgreso = barraProgreso;
		/*Barra*/
		jTextFieldUCE.addKeyListener (new ValidaBarras (jTextFieldUCE, barraProgreso));
		jTextFieldUNCE.addKeyListener (new ValidaBarras (jTextFieldUNCE, barraProgreso));
		jTextFieldUEX.addKeyListener (new ValidaBarras (jTextFieldUEX, barraProgreso));
		jTextFieldHorasTamañoSoftware.addKeyListener (new ValidaBarras (jTextFieldHorasTamañoSoftware, barraProgreso));
		jTextFieldHorasUsuariosEvaluadores.addKeyListener (new ValidaBarras (jTextFieldHorasUsuariosEvaluadores, barraProgreso));
		jTextFieldHorasLugarEvaluacion.addKeyListener (new ValidaBarras (jTextFieldHorasLugarEvaluacion, barraProgreso));

	}

	public void setVista (VistaPrincipal vista) {
		this.vista = vista;
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	@SuppressWarnings ("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroupTamañoSoftware = new javax.swing.ButtonGroup();
        buttonGroupLugarEvaluacion = new javax.swing.ButtonGroup();
        buttonGroupModalidadPeriodoEntrega = new javax.swing.ButtonGroup();
        jPanelTamañoSoftware = new javax.swing.JPanel();
        jRadioButtonTamañoSoftwarePequeño = new javax.swing.JRadioButton();
        jRadioButtonTamañoSoftwareMedio = new javax.swing.JRadioButton();
        jRadioButtonTamañoSoftwareGrande = new javax.swing.JRadioButton();
        jLabelPrecisarNumeroModulos = new javax.swing.JLabel();
        jButtonDefinirTamañoSoftware = new javax.swing.JButton();
        jLabelNumeroModulosMedianos = new javax.swing.JLabel();
        jLabelNumeroModulosPequeños = new javax.swing.JLabel();
        jTextFieldNumeroModulosPequeños = new javax.swing.JTextField();
        jTextFieldNumeroModulosMedianos = new javax.swing.JTextField();
        jPanelModalidadUsuariosEvaluadores = new javax.swing.JPanel();
        jLabelTotalUsuarios = new javax.swing.JLabel();
        jLabelUEX = new javax.swing.JLabel();
        jLabelUNCE = new javax.swing.JLabel();
        jLabelUCE = new javax.swing.JLabel();
        jTextFieldUCE = new javax.swing.JTextField();
        jTextFieldUNCE = new javax.swing.JTextField();
        jTextFieldUEX = new javax.swing.JTextField();
        jTextFieldTotalUsuarios = new javax.swing.JTextField();
        jPanelLugarEvaluacion = new javax.swing.JPanel();
        jRadioButtonLugarEmpresa = new javax.swing.JRadioButton();
        jRadioButtonLugarArrendado = new javax.swing.JRadioButton();
        jPanelModalidadPeriodoEntrega = new javax.swing.JPanel();
        jRadioButtonEvaluador = new javax.swing.JRadioButton();
        jRadioButtonEmpresa = new javax.swing.JRadioButton();
        jLabelDiasEvaluador = new javax.swing.JLabel();
        jLabelDiasEmpresa = new javax.swing.JLabel();
        jTextFieldDiasEvaluador = new javax.swing.JTextField();
        jTextFieldDiasEmpresa = new javax.swing.JTextField();
        jPanelTiempoEmplear = new javax.swing.JPanel();
        jLabelHorasTamañoSoftware = new javax.swing.JLabel();
        jLabelHorasUsuariosEvaluadores = new javax.swing.JLabel();
        jLabelHorasLugarEvaluacion = new javax.swing.JLabel();
        jTextFieldHorasTamañoSoftware = new javax.swing.JTextField();
        jTextFieldHorasUsuariosEvaluadores = new javax.swing.JTextField();
        jTextFieldHorasLugarEvaluacion = new javax.swing.JTextField();

        setMaximumSize(new java.awt.Dimension(595, 540));
        setMinimumSize(new java.awt.Dimension(595, 540));
        setPreferredSize(new java.awt.Dimension(595, 540));

        jPanelTamañoSoftware.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Tamaño del software"));
        jPanelTamañoSoftware.setMaximumSize(new java.awt.Dimension(292, 200));
        jPanelTamañoSoftware.setMinimumSize(new java.awt.Dimension(292, 200));

        buttonGroupTamañoSoftware.add(jRadioButtonTamañoSoftwarePequeño);
        jRadioButtonTamañoSoftwarePequeño.setText("Pequeño");
        jRadioButtonTamañoSoftwarePequeño.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cambioTamañoSoftware(evt);
            }
        });

        buttonGroupTamañoSoftware.add(jRadioButtonTamañoSoftwareMedio);
        jRadioButtonTamañoSoftwareMedio.setText("Medio");
        jRadioButtonTamañoSoftwareMedio.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cambioTamañoSoftware(evt);
            }
        });

        buttonGroupTamañoSoftware.add(jRadioButtonTamañoSoftwareGrande);
        jRadioButtonTamañoSoftwareGrande.setText("Grande");
        jRadioButtonTamañoSoftwareGrande.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cambioTamañoSoftware(evt);
            }
        });

        jLabelPrecisarNumeroModulos.setText("Software grande debe precisar el número de módulos:");

        jButtonDefinirTamañoSoftware.setText("Ayúdame a definir el tamaño");
        jButtonDefinirTamañoSoftware.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDefinirTamañoSoftwareActionPerformed(evt);
            }
        });

        jLabelNumeroModulosMedianos.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelNumeroModulosMedianos.setText("Número de módulos medianos:");

        jLabelNumeroModulosPequeños.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelNumeroModulosPequeños.setText("Número de módulos pequeños:");

        jTextFieldNumeroModulosPequeños.setEnabled(false);
        jTextFieldNumeroModulosPequeños.setPreferredSize(new java.awt.Dimension(100, 20));

        jTextFieldNumeroModulosMedianos.setEnabled(false);
        jTextFieldNumeroModulosMedianos.setPreferredSize(new java.awt.Dimension(100, 20));

        javax.swing.GroupLayout jPanelTamañoSoftwareLayout = new javax.swing.GroupLayout(jPanelTamañoSoftware);
        jPanelTamañoSoftware.setLayout(jPanelTamañoSoftwareLayout);
        jPanelTamañoSoftwareLayout.setHorizontalGroup(
            jPanelTamañoSoftwareLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTamañoSoftwareLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelTamañoSoftwareLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelPrecisarNumeroModulos)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelTamañoSoftwareLayout.createSequentialGroup()
                        .addGroup(jPanelTamañoSoftwareLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabelNumeroModulosMedianos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabelNumeroModulosPequeños, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(12, 12, 12)
                        .addGroup(jPanelTamañoSoftwareLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextFieldNumeroModulosPequeños, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldNumeroModulosMedianos, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanelTamañoSoftwareLayout.createSequentialGroup()
                        .addGroup(jPanelTamañoSoftwareLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jRadioButtonTamañoSoftwareGrande, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jRadioButtonTamañoSoftwareMedio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jRadioButtonTamañoSoftwarePequeño, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(24, 24, 24)
                        .addComponent(jButtonDefinirTamañoSoftware)))
                .addContainerGap())
        );
        jPanelTamañoSoftwareLayout.setVerticalGroup(
            jPanelTamañoSoftwareLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTamañoSoftwareLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jRadioButtonTamañoSoftwarePequeño)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelTamañoSoftwareLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jRadioButtonTamañoSoftwareMedio)
                    .addComponent(jButtonDefinirTamañoSoftware))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jRadioButtonTamañoSoftwareGrande)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabelPrecisarNumeroModulos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelTamañoSoftwareLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNumeroModulosPequeños)
                    .addComponent(jTextFieldNumeroModulosPequeños, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelTamañoSoftwareLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNumeroModulosMedianos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jTextFieldNumeroModulosMedianos, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanelModalidadUsuariosEvaluadores.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Modalidad de Usuarios Evaluadores"));
        jPanelModalidadUsuariosEvaluadores.setMaximumSize(new java.awt.Dimension(292, 169));
        jPanelModalidadUsuariosEvaluadores.setMinimumSize(new java.awt.Dimension(292, 169));

        jLabelTotalUsuarios.setText("TOTAL DE USUARIOS:");

        jLabelUEX.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelUEX.setText("UEX:");
        jLabelUEX.setToolTipText("Usuarios Externos");

        jLabelUNCE.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelUNCE.setText("UNCE:");
        jLabelUNCE.setToolTipText("Usuarios No Comprometidos por la Empresa");

        jLabelUCE.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelUCE.setText("UCE:");
        jLabelUCE.setToolTipText("Usuarios Comprometidos por la Empresa");

        jTextFieldUCE.setPreferredSize(new java.awt.Dimension(100, 20));

        jTextFieldUNCE.setPreferredSize(new java.awt.Dimension(100, 20));

        jTextFieldUEX.setPreferredSize(new java.awt.Dimension(100, 20));

        jTextFieldTotalUsuarios.setEnabled(false);
        jTextFieldTotalUsuarios.setPreferredSize(new java.awt.Dimension(100, 20));

        javax.swing.GroupLayout jPanelModalidadUsuariosEvaluadoresLayout = new javax.swing.GroupLayout(jPanelModalidadUsuariosEvaluadores);
        jPanelModalidadUsuariosEvaluadores.setLayout(jPanelModalidadUsuariosEvaluadoresLayout);
        jPanelModalidadUsuariosEvaluadoresLayout.setHorizontalGroup(
            jPanelModalidadUsuariosEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createSequentialGroup()
                        .addComponent(jLabelUCE, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jTextFieldUCE, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createSequentialGroup()
                        .addComponent(jLabelUNCE, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jTextFieldUNCE, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createSequentialGroup()
                        .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelUEX, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelTotalUsuarios))
                        .addGap(18, 18, 18)
                        .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldTotalUsuarios, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldUEX, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(47, Short.MAX_VALUE))
        );
        jPanelModalidadUsuariosEvaluadoresLayout.setVerticalGroup(
            jPanelModalidadUsuariosEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelUCE)
                    .addComponent(jTextFieldUCE, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelUNCE)
                    .addComponent(jTextFieldUNCE, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelUEX)
                    .addComponent(jTextFieldUEX, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelModalidadUsuariosEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTotalUsuarios)
                    .addComponent(jTextFieldTotalUsuarios, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanelLugarEvaluacion.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Lugar de Evaluación"));
        jPanelLugarEvaluacion.setMaximumSize(new java.awt.Dimension(279, 89));
        jPanelLugarEvaluacion.setMinimumSize(new java.awt.Dimension(279, 89));

        buttonGroupLugarEvaluacion.add(jRadioButtonLugarEmpresa);
        jRadioButtonLugarEmpresa.setText("Lugar Empresa");
        jRadioButtonLugarEmpresa.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cambioLugarEvaluacion(evt);
            }
        });

        buttonGroupLugarEvaluacion.add(jRadioButtonLugarArrendado);
        jRadioButtonLugarArrendado.setText("Lugar Arrendado");
        jRadioButtonLugarArrendado.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cambioLugarEvaluacion(evt);
            }
        });

        javax.swing.GroupLayout jPanelLugarEvaluacionLayout = new javax.swing.GroupLayout(jPanelLugarEvaluacion);
        jPanelLugarEvaluacion.setLayout(jPanelLugarEvaluacionLayout);
        jPanelLugarEvaluacionLayout.setHorizontalGroup(
            jPanelLugarEvaluacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLugarEvaluacionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelLugarEvaluacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jRadioButtonLugarEmpresa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jRadioButtonLugarArrendado, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(154, Short.MAX_VALUE))
        );
        jPanelLugarEvaluacionLayout.setVerticalGroup(
            jPanelLugarEvaluacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLugarEvaluacionLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jRadioButtonLugarEmpresa)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jRadioButtonLugarArrendado)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanelModalidadPeriodoEntrega.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Modalidad Período de Entrega"));
        jPanelModalidadPeriodoEntrega.setMaximumSize(new java.awt.Dimension(279, 94));
        jPanelModalidadPeriodoEntrega.setMinimumSize(new java.awt.Dimension(279, 94));

        buttonGroupModalidadPeriodoEntrega.add(jRadioButtonEvaluador);
        jRadioButtonEvaluador.setText("Evaluador");
        jRadioButtonEvaluador.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                CambioPeriodoEntrega(evt);
            }
        });

        buttonGroupModalidadPeriodoEntrega.add(jRadioButtonEmpresa);
        jRadioButtonEmpresa.setText("Empresa");
        jRadioButtonEmpresa.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                CambioPeriodoEntrega(evt);
            }
        });

        jLabelDiasEvaluador.setText("Días");

        jLabelDiasEmpresa.setText("Días");

        jTextFieldDiasEvaluador.setEnabled(false);
        jTextFieldDiasEvaluador.setPreferredSize(new java.awt.Dimension(100, 20));

        jTextFieldDiasEmpresa.setEnabled(false);
        jTextFieldDiasEmpresa.setPreferredSize(new java.awt.Dimension(100, 20));

        javax.swing.GroupLayout jPanelModalidadPeriodoEntregaLayout = new javax.swing.GroupLayout(jPanelModalidadPeriodoEntrega);
        jPanelModalidadPeriodoEntrega.setLayout(jPanelModalidadPeriodoEntregaLayout);
        jPanelModalidadPeriodoEntregaLayout.setHorizontalGroup(
            jPanelModalidadPeriodoEntregaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelModalidadPeriodoEntregaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelModalidadPeriodoEntregaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jRadioButtonEmpresa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jRadioButtonEvaluador, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(26, 26, 26)
                .addGroup(jPanelModalidadPeriodoEntregaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jTextFieldDiasEvaluador, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldDiasEmpresa, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelModalidadPeriodoEntregaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDiasEmpresa)
                    .addComponent(jLabelDiasEvaluador))
                .addGap(32, 32, 32))
        );
        jPanelModalidadPeriodoEntregaLayout.setVerticalGroup(
            jPanelModalidadPeriodoEntregaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelModalidadPeriodoEntregaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelModalidadPeriodoEntregaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jRadioButtonEvaluador)
                    .addComponent(jLabelDiasEvaluador)
                    .addComponent(jTextFieldDiasEvaluador, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelModalidadPeriodoEntregaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jRadioButtonEmpresa)
                    .addComponent(jLabelDiasEmpresa)
                    .addComponent(jTextFieldDiasEmpresa, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanelTiempoEmplear.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Tiempo a Emplear"));
        jPanelTiempoEmplear.setMaximumSize(new java.awt.Dimension(279, 130));
        jPanelTiempoEmplear.setMinimumSize(new java.awt.Dimension(279, 130));

        jLabelHorasTamañoSoftware.setText("Horas por Tamaño Software:");

        jLabelHorasUsuariosEvaluadores.setText("Horas por Usuarios Evaluadores:");

        jLabelHorasLugarEvaluacion.setText("Horas por Lugar de Evaluación:");

        jTextFieldHorasTamañoSoftware.setPreferredSize(new java.awt.Dimension(80, 20));

        jTextFieldHorasUsuariosEvaluadores.setPreferredSize(new java.awt.Dimension(80, 20));

        jTextFieldHorasLugarEvaluacion.setPreferredSize(new java.awt.Dimension(80, 20));

        javax.swing.GroupLayout jPanelTiempoEmplearLayout = new javax.swing.GroupLayout(jPanelTiempoEmplear);
        jPanelTiempoEmplear.setLayout(jPanelTiempoEmplearLayout);
        jPanelTiempoEmplearLayout.setHorizontalGroup(
            jPanelTiempoEmplearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTiempoEmplearLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelTiempoEmplearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabelHorasLugarEvaluacion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabelHorasTamañoSoftware, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabelHorasUsuariosEvaluadores, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelTiempoEmplearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTextFieldHorasUsuariosEvaluadores, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldHorasTamañoSoftware, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldHorasLugarEvaluacion, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelTiempoEmplearLayout.setVerticalGroup(
            jPanelTiempoEmplearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTiempoEmplearLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelTiempoEmplearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelHorasTamañoSoftware)
                    .addComponent(jTextFieldHorasTamañoSoftware, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelTiempoEmplearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelHorasUsuariosEvaluadores)
                    .addComponent(jTextFieldHorasUsuariosEvaluadores, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelTiempoEmplearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelHorasLugarEvaluacion)
                    .addComponent(jTextFieldHorasLugarEvaluacion, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelModalidadUsuariosEvaluadores, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelTamañoSoftware, javax.swing.GroupLayout.DEFAULT_SIZE, 294, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelTiempoEmplear, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jPanelModalidadPeriodoEntrega, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPanelLugarEvaluacion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanelModalidadPeriodoEntrega, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanelLugarEvaluacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanelTiempoEmplear, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanelTamañoSoftware, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanelModalidadUsuariosEvaluadores, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(192, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

	private void jButtonDefinirTamañoSoftwareActionPerformed (java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDefinirTamañoSoftwareActionPerformed
		DialogoMetodoMPF dialogoTamañoSoftware = new DialogoMetodoMPF (vista, true);

		dialogoTamañoSoftware.setVisible (true);
	}//GEN-LAST:event_jButtonDefinirTamañoSoftwareActionPerformed

        private void cambioTamañoSoftware(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cambioTamañoSoftware
			if (!cambioTamañoSoftware) {
				cambioTamañoSoftware = true;
				vista.getjProgressBarPaso1 ().setValue (vista.getjProgressBarPaso1 ().getValue () + 1);
			}
			if (jRadioButtonTamañoSoftwareGrande.isSelected ()) {
				jTextFieldNumeroModulosPequeños.setEnabled (true);
				jTextFieldNumeroModulosMedianos.setEnabled (true);
				vista.getjProgressBarPaso1 ().setMaximum (11);
			} else {
				jTextFieldNumeroModulosPequeños.setEnabled (false);
				jTextFieldNumeroModulosMedianos.setEnabled (false);
				vista.getjProgressBarPaso1 ().setMaximum (9);
			}
        }//GEN-LAST:event_cambioTamañoSoftware

        private void cambioLugarEvaluacion(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cambioLugarEvaluacion
			if (!cambioLugarEvaluacion) {
				cambioLugarEvaluacion = true;
				barraProgreso.setValue (barraProgreso.getValue () + 1);
			}            // TODO add your handling code here:
        }//GEN-LAST:event_cambioLugarEvaluacion

        private void CambioPeriodoEntrega(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_CambioPeriodoEntrega
			if (!cambioPeriodoEntrega) {
				cambioPeriodoEntrega = true;
				barraProgreso.setValue (barraProgreso.getValue () + 1);
			}
        }//GEN-LAST:event_CambioPeriodoEntrega

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroupLugarEvaluacion;
    private javax.swing.ButtonGroup buttonGroupModalidadPeriodoEntrega;
    private javax.swing.ButtonGroup buttonGroupTamañoSoftware;
    private javax.swing.JButton jButtonDefinirTamañoSoftware;
    private javax.swing.JLabel jLabelDiasEmpresa;
    private javax.swing.JLabel jLabelDiasEvaluador;
    private javax.swing.JLabel jLabelHorasLugarEvaluacion;
    private javax.swing.JLabel jLabelHorasTamañoSoftware;
    private javax.swing.JLabel jLabelHorasUsuariosEvaluadores;
    private javax.swing.JLabel jLabelNumeroModulosMedianos;
    private javax.swing.JLabel jLabelNumeroModulosPequeños;
    private javax.swing.JLabel jLabelPrecisarNumeroModulos;
    private javax.swing.JLabel jLabelTotalUsuarios;
    private javax.swing.JLabel jLabelUCE;
    private javax.swing.JLabel jLabelUEX;
    private javax.swing.JLabel jLabelUNCE;
    private javax.swing.JPanel jPanelLugarEvaluacion;
    private javax.swing.JPanel jPanelModalidadPeriodoEntrega;
    private javax.swing.JPanel jPanelModalidadUsuariosEvaluadores;
    private javax.swing.JPanel jPanelTamañoSoftware;
    private javax.swing.JPanel jPanelTiempoEmplear;
    private javax.swing.JRadioButton jRadioButtonEmpresa;
    private javax.swing.JRadioButton jRadioButtonEvaluador;
    private javax.swing.JRadioButton jRadioButtonLugarArrendado;
    private javax.swing.JRadioButton jRadioButtonLugarEmpresa;
    private javax.swing.JRadioButton jRadioButtonTamañoSoftwareGrande;
    private javax.swing.JRadioButton jRadioButtonTamañoSoftwareMedio;
    private javax.swing.JRadioButton jRadioButtonTamañoSoftwarePequeño;
    private javax.swing.JTextField jTextFieldDiasEmpresa;
    private javax.swing.JTextField jTextFieldDiasEvaluador;
    private javax.swing.JTextField jTextFieldHorasLugarEvaluacion;
    private javax.swing.JTextField jTextFieldHorasTamañoSoftware;
    private javax.swing.JTextField jTextFieldHorasUsuariosEvaluadores;
    private javax.swing.JTextField jTextFieldNumeroModulosMedianos;
    private javax.swing.JTextField jTextFieldNumeroModulosPequeños;
    private javax.swing.JTextField jTextFieldTotalUsuarios;
    private javax.swing.JTextField jTextFieldUCE;
    private javax.swing.JTextField jTextFieldUEX;
    private javax.swing.JTextField jTextFieldUNCE;
    // End of variables declaration//GEN-END:variables
}
